package com.example.selfservicestation.fragment

import android.os.Bundle
import android.view.View
import androidx.navigation.fragment.findNavController
import com.example.selfservicestation.R
import com.example.selfservicestation.base.BaseBindingFragment
import com.example.selfservicestation.databinding.FragmentConfigMenuBinding
import com.example.selfservicestation.extensions.safeNavigate

class ConfigMenuFragment: BaseBindingFragment<FragmentConfigMenuBinding>(FragmentConfigMenuBinding::inflate) {

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding.btnLockTest.setOnClickListener {
            findNavController().safeNavigate(R.id.configMenuFragment_to_testLockFragment)
        }
        binding.btnConfig.setOnClickListener {
            findNavController().safeNavigate(R.id.configMenuFragment_to_configFragment)
        }

        binding.btnBack.setOnClickListener {
            findNavController().navigateUp()
        }
    }
}